package org.dubbo.consumer;

import com.alibaba.dubbo.common.extension.ExtensionLoader;

public class Gen$Adpative implements org.dubbo.consumer.Gen {
	public void say(com.alibaba.dubbo.common.URL arg0) {
		if (arg0 == null)
			throw new IllegalArgumentException("url == null");
		com.alibaba.dubbo.common.URL url = arg0;
		String extName = url.getParameter("gen");
		if (extName == null)
			throw new IllegalStateException("Fail to get extension(org.dubbo.consumer.Gen) name from url("
					+ url.toString() + ") use keys([gen])");
		org.dubbo.consumer.Gen extension = (org.dubbo.consumer.Gen) ExtensionLoader
				.getExtensionLoader(org.dubbo.consumer.Gen.class).getExtension(extName);
		extension.say(arg0);
	}
}